package ${basePackage}.controller;

import com.esunrising.esungsc.dto.Result;
import ${basePackage}.entity.${className};
import ${basePackage}.service.${className}Service;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/internal/api/v1/${className?uncap_first}")
@Api(value = "/internal/api/v1/${className?uncap_first}", tags = {"${tableComment}接口处理模块"})
@Slf4j
public class ${className}Controller {


    @Resource
    private ${className}Service ${className?uncap_first}Service;

    @GetMapping("/{id}")
    Result<${className}> getById(@PathVariable String id) {
        return Result.ok(${className?uncap_first}Service.findById(id));
    }



}